Optimal. Leaf size=178 \[ \frac{4 a (24 A+28 B+35 C) \sin (c+d x) \sqrt{\sec (c+d x)}}{105 d \sqrt{a \sec (c+d x)+a}}+\frac{2 a (24 A+28 B+35 C) \sin (c+d x)}{105 d \sqrt{\sec (c+d x)} \sqrt{a \sec (c+d x)+a}}+\frac{2 a (A+7 B) \sin (c+d x)}{35 d \sec ^{\frac{3}{2}}(c+d x) \sqrt{a \sec (c+d x)+a}}+\frac{2 A \sin (c+d x) \sqrt{a \sec (c+d x)+a}}{7 d \sec ^{\frac{5}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.42577, antiderivative size = 178, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 45, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.089, Rules used = {4086, 4015, 3805, 3804} \[ \frac{4 a (24 A+28 B+35 C) \sin (c+d x) \sqrt{\sec (c+d x)}}{105 d \sqrt{a \sec (c+d x)+a}}+\frac{2 a (24 A+28 B+35 C) \sin (c+d x)}{105 d \sqrt{\sec (c+d x)} \sqrt{a \sec (c+d x)+a}}+\frac{2 a (A+7 B) \sin (c+d x)}{35 d \sec ^{\frac{3}{2}}(c+d x) \sqrt{a \sec (c+d x)+a}}+\frac{2 A \sin (c+d x) \sqrt{a \sec (c+d x)+a}}{7 d \sec ^{\frac{5}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4086
Rule 4015
Rule 3805
Rule 3804
Rubi steps
\begin{align*} \int \frac{\sqrt{a+a \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sec ^{\frac{7}{2}}(c+d x)} \, dx &=\frac{2 A \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{7 d \sec ^{\frac{5}{2}}(c+d x)}+\frac{2 \int \frac{\sqrt{a+a \sec (c+d x)} \left (\frac{1}{2} a (A+7 B)+\frac{1}{2} a (4 A+7 C) \sec (c+d x)\right )}{\sec ^{\frac{5}{2}}(c+d x)} \, dx}{7 a}\\ &=\frac{2 a (A+7 B) \sin (c+d x)}{35 d \sec ^{\frac{3}{2}}(c+d x) \sqrt{a+a \sec (c+d x)}}+\frac{2 A \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{7 d \sec ^{\frac{5}{2}}(c+d x)}+\frac{1}{35} (24 A+28 B+35 C) \int \frac{\sqrt{a+a \sec (c+d x)}}{\sec ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 a (A+7 B) \sin (c+d x)}{35 d \sec ^{\frac{3}{2}}(c+d x) \sqrt{a+a \sec (c+d x)}}+\frac{2 a (24 A+28 B+35 C) \sin (c+d x)}{105 d \sqrt{\sec (c+d x)} \sqrt{a+a \sec (c+d x)}}+\frac{2 A \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{7 d \sec ^{\frac{5}{2}}(c+d x)}+\frac{1}{105} (2 (24 A+28 B+35 C)) \int \frac{\sqrt{a+a \sec (c+d x)}}{\sqrt{\sec (c+d x)}} \, dx\\ &=\frac{2 a (A+7 B) \sin (c+d x)}{35 d \sec ^{\frac{3}{2}}(c+d x) \sqrt{a+a \sec (c+d x)}}+\frac{2 a (24 A+28 B+35 C) \sin (c+d x)}{105 d \sqrt{\sec (c+d x)} \sqrt{a+a \sec (c+d x)}}+\frac{4 a (24 A+28 B+35 C) \sqrt{\sec (c+d x)} \sin (c+d x)}{105 d \sqrt{a+a \sec (c+d x)}}+\frac{2 A \sqrt{a+a \sec (c+d x)} \sin (c+d x)}{7 d \sec ^{\frac{5}{2}}(c+d x)}\\ \end{align*}
Mathematica [A] time = 0.866304, size = 99, normalized size = 0.56 \[ \frac{\tan \left (\frac{1}{2} (c+d x)\right ) \sqrt{a (\sec (c+d x)+1)} ((141 A+28 (4 B+5 C)) \cos (c+d x)+6 (6 A+7 B) \cos (2 (c+d x))+15 A \cos (3 (c+d x))+228 A+266 B+280 C)}{210 d \sqrt{\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.422, size = 130, normalized size = 0.7 \begin{align*} -{\frac{ \left ( -2+2\,\cos \left ( dx+c \right ) \right ) \left ( 15\,A \left ( \cos \left ( dx+c \right ) \right ) ^{3}+18\,A \left ( \cos \left ( dx+c \right ) \right ) ^{2}+21\,B \left ( \cos \left ( dx+c \right ) \right ) ^{2}+24\,A\cos \left ( dx+c \right ) +28\,B\cos \left ( dx+c \right ) +35\,C\cos \left ( dx+c \right ) +48\,A+56\,B+70\,C \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{105\,d\sin \left ( dx+c \right ) }\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{-1} \right ) ^{{\frac{7}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.34806, size = 822, normalized size = 4.62 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.488662, size = 312, normalized size = 1.75 \begin{align*} \frac{2 \,{\left (15 \, A \cos \left (d x + c\right )^{4} + 3 \,{\left (6 \, A + 7 \, B\right )} \cos \left (d x + c\right )^{3} +{\left (24 \, A + 28 \, B + 35 \, C\right )} \cos \left (d x + c\right )^{2} + 2 \,{\left (24 \, A + 28 \, B + 35 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{105 \,{\left (d \cos \left (d x + c\right ) + d\right )} \sqrt{\cos \left (d x + c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt{a \sec \left (d x + c\right ) + a}}{\sec \left (d x + c\right )^{\frac{7}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]